package com.hkd.product_service.api;

import com.hkd.common.api.ApiResponse;
import com.hkd.product_service.api.dto.InsertProductCategoryDTO;
import com.hkd.product_service.api.fallback.ProductCategoryServiceImplFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author HKD
 * @date 2022/9/17 21:40
 */
@FeignClient(name = "product-service",
        contextId = "ProductCategoryService",
        fallbackFactory = ProductCategoryServiceImplFallback.class
)
public interface ProductCategoryService {
    @PostMapping("insertProductCategory")
    ApiResponse insertProductCategory(@RequestParam("curUserId")String curUserId, @RequestBody List<InsertProductCategoryDTO> param);
}
